import requests
# 4、get、post函数的参数传递、利用参数进行搜索
url = "http://httpbin.org/post"
params = {'wd':"0228200122"}
r = requests.get(url,params=params)
print(r.url)
#以上为get 下面是post
data = 'sltsltslt'
r = requests.post(url,data=data)
print(r.text)